<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<padnug.Domain.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UpdateEvent
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>UpdateEvent</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="ID">ID:</label>
                <%--<%= Html.TextBox("ID", Model.ID) %>--%>
                <%= Html.TextBoxFor(Model => Model.ID) %>
                <%= Html.ValidationMessage("ID", "*") %>
            </p>
            <p>
                <label for="MeetingDate">MeetingDate:</label>
                <%--<%= Html.TextBox("MeetingDate", String.Format("{0:g}", Model.MeetingDate)) %>--%>
                <%= Html.TextBoxFor(Model => Model.MeetingDate) %>
                <%= Html.ValidationMessage("MeetingDate", "*") %>
            </p>
            <p>
                <label for="Host">Host:</label>
                <%--<%= Html.TextBox("Host", Model.Host) %>--%>
                <%= Html.TextBoxFor(Model => Model.Host) %>
                <%= Html.ValidationMessage("Host", "*") %>
            </p>
            <p>
                <label for="HostSummary">HostSummary:</label>
                <%--<%= Html.TextBox("HostSummary", Model.HostSummary) %>--%>
                <%= Html.TextBoxFor(Model => Model.HostSummary) %>
                <%= Html.ValidationMessage("HostSummary", "*") %>
            </p>
            <p>
                <label for="Minutes">Minutes:</label>
                <%--<%= Html.TextBox("Minutes", Model.Minutes) %>--%>
                <%= Html.TextBoxFor(Model => Model.Minutes) %>
                <%= Html.ValidationMessage("Minutes", "*") %>
            </p>
            <p>
                <label for="Topic">Topic:</label>
                <%= Html.TextBoxFor(Model => Model.Topic) %>
                <%= Html.ValidationMessage("Topic", "*") %>
            </p>
            <p>
                <label for="TopicSummary">TopicSummary:</label>
                <%= Html.TextBoxFor(Model => Model.TopicSummary) %>
                <%= Html.ValidationMessage("TopicSummary", "*") %>
            </p>
            <p>
                <label for="Location">Location:</label>
                <%= Html.TextBoxFor(Model => Model.Location) %>
                <%= Html.ValidationMessage("Location", "*") %>
            </p>
            <p>
                <label for="Latitude">Latitude:</label>
                <%= Html.TextBoxFor(Model => Model.Latitude) %>
                <%= Html.ValidationMessage("Latitude", "*") %>
            </p>
            <p>
                <label for="Longitude">Longitude:</label>
                <%= Html.TextBoxFor(Model => Model.Longitude) %>
                <%= Html.ValidationMessage("Longitude", "*") %>
            </p>
            <p>
                <label for="MeetingTime">MeetingTime:</label>
                <%= Html.TextBoxFor(Model => Model.MeetingTime) %>
                <%= Html.ValidationMessage("MeetingTime", "*") %>
            </p>
            <p>
                <label for="MeetingStart">MeetingStart:</label>
                <%= Html.TextBoxFor(Model => Model.MeetingStart) %>
                <%= Html.ValidationMessage("MeetingStart", "*") %>
            </p>
            <p>
                <label for="MeetingEnd">MeetingEnd:</label>
                <%= Html.TextBoxFor(Model => Model.MeetingEnd) %>
                <%= Html.ValidationMessage("MeetingEnd", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="RightContent" runat="server">
</asp:Content>

